package com.omega.exam.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.omega.exam.entity.QuestionAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface QuestionAnswerMapper extends BaseMapper<QuestionAnswer> {
    @Select("select q.question_id , q.* from question_answers q GROUP BY q.question_id;")
    List<Map<String, String>> selectAnswer(Long id);
}